﻿class Display extends MovieClip
{
	private var cue_length:Number = 0;//stores the number of seq_checks cued in the snake
	
	function Display()
	{
		_alpha = 50;
		trace("new display");
		this._visible = false;
		this.stop();
	}
	public function checking(Void):Void
	{
		this._visible = true;
		this.gotoAndPlay("checking");//final frame conains a loopback command .: will loop permanantly 
	}
	public function correct(Void):Void
	{
		_visible = true;
		this.gotoAndPlay("correct"); //final frame contains a stop command and 0 alpha
	}
	public function incorrect(Void):Void
	{
		_visible = true;
		this.gotoAndPlay("incorrect"); //final frame contains a stop command and 0 alpha
	}
	public function listen(Void):Void
	{
		_visible = true;
		this.gotoAndPlay("listen"); //final frame contains a stop command and 0 alpha
	}
	public function game_over(Void):Void //not in use yet
	{
		_alpha = 100;
		_visible = true;
		this.gotoAndPlay("game_over"); //final frame contains a stop command and 0 alpha
	}
	public function level_clear(Void):Void
	{
		_visible = true;
		_alpha = 100;
		this.gotoAndPlay("level_clear"); //at the moment this is called repeatedly so stop
	}
	public function set visibility(state:Boolean)
	{
		this._visible = state;
	}
}